<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:t="http://myfaces.apache.org/tomahawk">

<ui:composition template="templates/template.xhtml">

	<ui:define name="title">
	 	E-Filing System Reports Page
	</ui:define>
	<ui:param name="page" value="home" />
	<ui:define name="header">
		<ui:include src="header.xhtml" />
	</ui:define>

	<ui:define name="menu">
		<div align="center"><h:form id="mennuForm">
			<h:message for="mennuForm" class="error" />
			<br />
			<br />
				<h:panelGrid columns="1" styleClass="bodypanel">
				<h:outputLabel value="Parameters for Report Generation"
					styleClass="textFont200" />
				<h:panelGroup>
					<h:outputLabel value="Start Date: " styleClass="fontsubhead" />
					<br />
					<h:panelGroup>
						<t:inputCalendar id="startCourtDate"
							monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader"
							currentDayCellClass="currentDayCell"
							value="#{reportSummaryPage.startCourtDate}"
							renderAsPopup="true" renderPopupButtonAsImage="true" />
					</h:panelGroup>
				</h:panelGroup>
				<h:panelGroup>
					<h:outputLabel value="End Date: " styleClass="fontsubhead" />
					<br />
					<h:panelGroup>
						<t:inputCalendar id="endCourtDate"
							monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader"
							currentDayCellClass="currentDayCell"
							displayValueOnly="true"
							value="#{reportSummaryPage.endCourtDate}"
							renderAsPopup="true" renderPopupButtonAsImage="true" />
							<script>
								jQuery(function() {
									jQuery( ".courtDate" ).datepicker();
								});
							</script>
					</h:panelGroup>
				</h:panelGroup>
				<h:panelGroup>
				<br />
					<h:outputLabel value="Search Date Criteria "
						styleClass="fontsubhead" />
					<br />
					<h:panelGroup>
						<h:selectOneMenu id="reportFormatType" size="1"
							value="#{reportSummaryPage.reportFormatType}"
							binding="#{reportSummaryPage.reportFormatTypeInput}">
							<f:selectItems id="selectItem"
								value="#{reportSummaryPage.reportFormatTypeDescriptionItems}" />
						</h:selectOneMenu>
					</h:panelGroup>
				</h:panelGroup>
				<h:panelGroup>
				<br />
			<h:commandButton value="Generate Report" action="#{reportSummaryPage.generateReport}" />	  
				</h:panelGroup>
			</h:panelGrid>
			<br />
			<br />
			<br />
			<br />
		</h:form></div>
	</ui:define>

	<ui:define name="body">
		<h:form>
			<div class="grouping">
		<table dir="ltr" width="500" border="1">
	<caption>Case Filing Summary Report</caption>
	<colgroup width="50%" />
	<colgroup id="colgroup" class="colgroup" align="center"	valign="middle" title="title" width="1*" style="background:#ddd;" />
	<thead>
		<tr>
			<th scope="col">Case Filings Status</th>
			<th scope="col">Number Of Case filings</th>
		</tr>
	</thead>
	
<tbody>
		<tr>
			<td>
				<h:outputText value="Case Filings Imported"  />
			</td>	
			<td><h:outputText value="#{reportSummaryPage.importedCaseFilingCount}" /></td>
		</tr>
		<tr>
			<td>
				<h:outputText value="Case Filings Queued For Import"  />
			</td>
			<td><h:outputText value="#{reportSummaryPage.queuedForImportCaseFilingCount}" /></td>
		</tr>
		<tr>
			<td>
				<h:outputText value="Case Filings Failed To Import"  />
			</td>
			<td><h:outputText value="#{reportSummaryPage.failedToImportCaseFilingCount}" /></td>
		</tr>
		<tr>
			<td>
				<h:outputText value="Case Filings Rejected By Attorney"  />
			</td>
			<td><h:outputText value="#{reportSummaryPage.attorneyRejectedCaseFilingCount}" /></td>
		</tr>
		<tr>
			<td>
				<h:outputText value="Case Filings Sent To Attorney By Agent"  />
			</td>
			<td><h:outputText value="#{reportSummaryPage.attorneyRecievedCaseFilingCount}" /></td>
		</tr>
		<tr>
			<td>
				<h:outputText value="Case Filings Modified by the Attorney"  />
			</td>
			<td><h:outputText value="#{reportSummaryPage.attorneyAdditionCaseFilingCount}" /></td>
		</tr>
		<tr>
			<td>
				<h:outputText value="Case Filings Sent To the Clerk"  />
			</td>
			<td><h:outputText value="#{reportSummaryPage.clerkRecievedCaseFilingCount}" /></td>
		</tr>
		<tr>
			<td>
				<h:outputText value="Case Filings Readied for Import by the Clerk"  />
			</td>
			<td><h:outputText value="#{reportSummaryPage.clerkReadyToImportCaseFilingCount}" /></td>
		</tr>
		<tr>
			<td>
				<h:outputText value="Case Filings Created by Legal Preparer"  />
			</td>
			<td><h:outputText value="#{reportSummaryPage.unsentCaseFilingCount}" /></td>
		</tr>
		<tr>
			<td>
				<h:outputText value="Case Filings readied for Clerk by the Agent"  />
			</td>
			<td><h:outputText value="#{reportSummaryPage.unsentAdditionCaseFilingCount}" /> </td>
		</tr>
		<tr>
			<td>
				<h:outputText value="Case Filings Rejected by the clerk"  />
			</td>
			<td><h:outputText value="#{reportSummaryPage.clerkRejectedCaseFilingCount}" /></td>
		</tr>
		<tr>
			<td>
				<h:outputText value="Case Filings Readied by Attorney for Court"  />
			</td>
			<td><h:outputText value="#{reportSummaryPage.readyToSendToCourtCaseFilingCount}" /></td>
		</tr>
		
	</tbody>
</table>

			
			</div>
		</h:form>
	</ui:define>

</ui:composition>

</html>